
#ifndef __APPMAIN_H__
#define __APPMAIN_H__

#include "ucos_ii.h"
#include <stm32f10x_lib.h>	

#define OSTaskCreateExt_USER(threadfunc, data, pro, threadstk, stksize) OSTaskCreateExt((void (*)(void *)) threadfunc, \
                	(void          * ) data,																	 	 \
	                (OS_STK        * )&threadstk[stksize - 1],								                     \
	                (INT8U           ) pro,																	     \
	                (INT16U          ) pro,																	     \
	                (OS_STK        * )&threadstk[0],														     \
	                (INT32U          ) stksize,													                 \
	                (void          * )0,																	     \
	                (INT16U          )(OS_TASK_OPT_STK_CLR | OS_TASK_OPT_STK_CHK));						


#endif
